package cn.edu.sjtu.stap.cfg.internal;

// import java.util.*;

import org.aspectj.org.eclipse.jdt.internal.compiler.ast.*;

// import cn.edu.sjtu.stap.cfg.*;
import cn.edu.sjtu.stap.cfg.builder.*;

public privileged aspect IntraModuleCfgBuilderAdapter {

    before(CompilationUnitDeclaration u, int index) : AstFetcher.astFetcherPc(u, index) {
        try {
            ICfgBuilder b = Initializer.getCfgBuilder();

            b.buildIntraModuleCfg(u);
        } catch (Throwable e) {
            System.err.println("Caught unexpected exception in Intra CFG construction!");
            e.printStackTrace();
        }
    }
}
